package comjavaday02;

import javax.swing.*;

public class seatFish {
    public static void main(String[] args) {
        JFrame jf = new JFrame();
        jf.setBounds(200,50,1024,846);
        jf.setTitle("海底世界");
        jf.setVisible(true);
        jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        Myfish jp = new Myfish();
        jf.add(jp);
        Thread th=new Thread(jp);
        th.start();
    }
}
